package com.hc.cesium.service.impl;


import com.hc.cesium.mapper.UserMapper;
import com.hc.cesium.model.User;
import com.hc.cesium.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> findAll(User user) {
        return userMapper.findAll(user );
    }

    @Override
    public User findByName(String name) {
        return userMapper.findByName(name);
    }
}
